package com.example.newleadcent.entity;

import org.springframework.stereotype.Repository;

/**
 * 用的是精简的实体类，不是苏伟项目中的那个
 */
@Repository
public class Term {
    private Integer id;
    private String term_imei="";
    private Integer term_provider=2;            //'设备提供商代码'
    private String register_time="";            //'注册时间'
    private Integer term_type=1;                //'设备类型'
    private String term_version="version2";     //'设备版本'
    private Integer term_state=0;               //'设备是否正常'
    private Integer term_online=1;              //'是否在线'
    private Integer location_type=0;            //'定位方式'
    private Integer if_chain=1;                 //'是否拆卸上报'
    private Integer chainstate=1;               //'是否拆卸'
    private String hrt_time="";                 //'心跳时间'
    private Integer batvalue=80;                //'电量'
    private String hrt_pack="0";                //'心跳包'
    private Integer if_upload=1;                //'是否上传'        数据是否对外共享
    private Integer upload_intervel=60;         //'定位间隔'
    private String location_lng="";             //'经度，BD09坐标系'
    private String location_lat="";             //'纬度，BD09坐标系'
    private String location_time="";            //'定位时间'
    private String location_name="";            //'定位地点名称'

    @Override
    public String toString() {
        return "Term{" +
                ", term_imei='" + term_imei + '\'' +
                ", term_provider=" + term_provider +
                ", register_time='" + register_time + '\'' +
                ", batvalue=" + batvalue +
                ", upload_intervel=" + upload_intervel +
                ", location_lng='" + location_lng + '\'' +
                ", location_lat='" + location_lat + '\'' +
                ", location_time='" + location_time + '\'' +
                ", location_name='" + location_name + '\'' +
                '}';
    }

    public Term(){}
    public Term(Integer id, String term_imei, Integer term_provider, String register_time,
                Integer term_type, String term_version, Integer term_state, Integer term_online, Integer location_type,
                Integer if_chain,
                Integer chainstate, String hrt_time, Integer batvalue, String hrt_pack, Integer if_upload,
                Integer upload_intervel, String location_lat, String location_lng, String location_time, String location_name)
    {
        this.id = id;
        this.term_imei = term_imei;this.term_provider = term_provider;this.register_time = register_time;
        this.term_type = term_type;this.term_version = term_version;this.term_state = term_state; this.term_online = term_online;
        this.location_type = location_type;
        this.chainstate =chainstate;this.hrt_time =hrt_time;this.batvalue =batvalue;this.hrt_pack =hrt_pack;
        this.if_upload =if_upload;this.upload_intervel =upload_intervel;
        this.if_chain=if_chain;
        this.location_lat = location_lat;
        this.location_lng = location_lng;
        this.location_time = location_time;
        this.location_name=location_name;
    }
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getterm_imei() {
        return term_imei;
    }
    public void setterm_imei(String term_imei) {
        this.term_imei = term_imei;
    }
    public Integer getterm_provider() {
        return term_provider;
    }
    public void setterm_provider(Integer term_provider) {
        this.term_provider = term_provider;
    }

    public Integer getterm_type() {
        return term_type;
    }
    public void setterm_typee(Integer term_type) {
        this.term_type = term_type;
    }


    public String getregister_time() {
        return register_time;
    }
    public void setregister_time(String register_time) {
        this.register_time = register_time;
    }

    public String getterm_version() {
        return term_version;
    }
    public void setterm_version(String term_version) {
        this.term_version = term_version;
    }
    public Integer getterm_state() {
        return term_state;
    }
    public void setterm_state(Integer term_state) {
        this.term_state = term_state;
    }
    public Integer getterm_online() {
        return term_online;
    }
    public void setterm_online(Integer term_online) {
        this.term_online = term_online;
    }
    public Integer getlocation_type() {
        return location_type;
    }
    public void setlocation_type(Integer location_type) {
        this.location_type = location_type;
    }
    public Integer getif_chain() {
        return if_chain;
    }
    public void setif_chain(Integer if_chain) {
        this.if_chain = if_chain;
    }
    public Integer getchainstate() {
        return chainstate;
    }
    public void setchainstate(Integer chainstate) {
        this.chainstate = chainstate;
    }

    public String gethrt_time() {
        return hrt_time;
    }
    public void sethrt_time(String hrt_time) {
        this.hrt_time =hrt_time;
    }
    public Integer getbatvalue() {
        return batvalue;
    }
    public void setbatvalue(Integer batvalue) {
        this.batvalue =batvalue;
    }
    public String gethrt_pack() {
        return hrt_pack;
    }
    public void sethrt_pack(String hrt_pack) {
        this.hrt_pack =hrt_pack;
    }

    public Integer getif_upload() {
        return if_upload;
    }
    public void setif_upload(Integer if_upload) {
        this.if_upload =if_upload;
    }
    public Integer getupload_intervel() {
        return upload_intervel;
    }
    public void setupload_intervel(Integer upload_intervel) {
        this.upload_intervel =upload_intervel;
    }

    public String getlocation_lat() {
        return location_lat;
    }
    public void setlocation_lat(String  location_lat) {
        this.location_lat = location_lat;
    }
    public String getlocation_lng() {
        return location_lng;
    }

    public void setlocation_lng(String  location_lng) {
        this.location_lng = location_lng;
    }

    public String getlocation_time() {
        return location_time;
    }

    public void setlocation_time(String  location_time) {
        this.location_time = location_time;
    }
    public String getlocation_name() {
        return location_name;
    }

    public void setlocation_name(String  location_name) {
        this.location_name = location_name;
    }
}
